package cn.hanfeng.task.taskapi.model;

import lombok.Getter;
import lombok.Setter;

/**
 * @author hanfeng 2020/8/27 15:38
 * @version 0.0.1
 */
@Getter
@Setter
public class Result {

    private String code;
    private String desc;

    public Result(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static Result init() {
        return new Result(ResultConstants.SUCCESS_CODE, ResultConstants.SUCCESS_MSG);
    }
}
